package com.tianji.learning;

import com.tianji.common.utils.DateUtils;
import com.tianji.learning.mapper.LearningRecordMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.time.LocalDate;

@SpringBootTest
public class test {
    @Autowired
    private LearningRecordMapper learningRecordMapper;


    @Test
    public void test(){
        System.out.println(learningRecordMapper.getInWeekLearnedSections(1864314956481036290L, DateUtils.getWeekBeginTime(LocalDate.now()), DateUtils.getWeekEndTime(LocalDate.now())));
    }
}
